package com.dt76.smallloanbackenduser.remote.afterloan;


import com.dt76.smallloanbackenduser.pojo.afterloan.PrepaymentCommitInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;


@FeignClient(name = "smallloan-backend-service")
public interface PrepaymentRemote {

    @PostMapping(value = "/prepayment/commitRepaymentConfirm", consumes = "application/json")
    public Map<String, Object> commitRepaymentConfirm(@RequestBody PrepaymentCommitInfo q, @RequestParam("loanId") Integer loanId);
}